// 默认响应类型
export interface IApiResponse<T> {
    code: number;
    message: string;
    data: T
}


// 默认列表类型
export interface IApiResponseList<T> {
    code: number;
    message: string;
    data: {
        records: T[];
        count: number;
    }
}


// 默认查询类型
export interface IQueryParams {
    page: number;
    page_size: number;
}


// 默认查询条件类型
export interface ISearchSchema {
    label: string;
    field: string;
    type: "input" | "select" | "date-picker";
    placeholder: string;
    options?: { label: string; value: string; }[];
}


// 默认分页类型
export interface IPagination {
    page: number;
    page_size: number;
    count: number;
}
